package com.water.wfo.component.constant;

public class HttpApiConstants {

    /**
     * UTF-8编码
     */
    public static final String ENCODING_UTF8 = "UTF-8";


    /**
     * gb2312编码
     */
    public static final String ENCODING_GB2312 = "gb2312";


    /**
     * ISO-8859-1编码
     */
    public static final String ENCODING_ISO_8859_1 = "ISO-8859-1";

    /**
     * 内容类型：json
     */
    public static final String CONTENT_TYPE_JSON = "application/json";

    /**
     * 内容类型：json
     */
    public static final String CONTENT_TYPE_JSON_UTF8 = "application/json;charset=UTF-8";


    /**
     * 内容类型：html，utf-8
     */
    public static final String CONTENT_TYPE_HTML_UTF8 = "text/html;charset=UTF-8";

    /**
     * 内容类型：html，gb2312
     */
    public static final String CONTENT_TYPE_HTML_GB2312 = "text/html;charset=gb2312";

    /**
     * header头：Content-Type
     */
    public static final String HEADER_CONTENT_TYPE = "Content-Type";

    /**
     * http响应码：200
     */
    public static final int HTTP_RESPONSE_SUCCESS = 200;

    /**
     * http连接超时时间：默认3秒
     */
    public static final int HTTP_CONNECT_TIMEOUT_DEFAULT = 3*1000;

    /**
     * http读取超时时间：默认3秒
     */
    public static final int HTTP_SO_TIMEOUT_DEFAULT = 3*1000;

    public static final String USER_AGENT = "User-Agent";
}
